/**
* @file uart_common.h
* @author www.tuya.com
* @brief  demo for SDK WiFi & BLE for BK7231N, hardware: BK7231N NANO SoC board
* @version 0.1
* @date 2021-08-12
*
* @copyright Copyright (c) tuya.inc 2021
*
*/

#ifndef _UART_COMMON_H
#define _UART_COMMON_H

#include "tuya_cloud_types.h"
#include "tuya_uart.h"

#ifdef __cplusplus
extern "C" {
#endif

#ifdef _TUYA_DEVICE_GLOBAL
#define _TUYA_DEVICE_EXT
#else
#define _TUYA_DEVICE_EXT extern
#endif

/***********************************************************
*************************function define********************
***********************************************************/

/**
* @brief uart_task_init
*
* @param[in] none
* @return none
*/
_TUYA_DEVICE_EXT
OPERATE_RET uart_task_init(IN TY_UART_BAUD_E uart_baud, IN CHAR_T *key_p,
                           IN UINT_T key_len, IN BOOL_T flow_flg);

#ifdef __cplusplus
}
#endif

#endif
